package com.util;

import com.videoplayer.DownLoadActivity;
import com.videoplayer.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class ConfirmDialog extends Dialog {

    Context context;
    String title;
    int count;
    public ConfirmDialog(Context context) {
        super(context);
        // TODO Auto-generated constructor stub
        this.context = context;
    }
    public ConfirmDialog(Context context, int theme,String title,int count){
        super(context, theme);
        this.context = context;
        this.title = title;
        this.count = count;
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.confirm_dialog);
		TextView tvTitle = (TextView)findViewById(R.id.tv_confirm_dialog_title);
		TextView tvDialogTitle = (TextView)findViewById(R.id.tv_confirm_dialog_title_top);
		TextView tvInfo = (TextView)findViewById(R.id.tv_confirm_dialog_info);
		tvDialogTitle.setText("删除");
		tvTitle.setText(title);
		tvInfo.setText("");
		this.getWindow().setWindowAnimations(R.anim.dia_show);
		getWindow().setBackgroundDrawableResource(android.R.color.transparent);
    }

}
